<template>
	<view class="d-c-c body">
		<view class="card pt80 pl80 pr80 f28">
			<view class="title tc fb f40 mt80 pt40">{{detail.type}}信息</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">俗名：</view>
				<view class="value">{{ detail.name }}</view>
			</view>
			<!-- <view class="item mt15 d-s-c">
        <view class="name fb f32">俗名：</view>
        <view class="value">{{ detail.name2 }}</view>
      </view> -->
			<view class="item mt15 d-s-c">
				<view class="name fb f32">身份证号码：</view>
				<view class="value">{{ detail.card }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">联系电话：</view>
				<view class="value">{{ detail.tel }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">籍贯：</view>
				<view class="value">{{ detail.native_place }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">类型：</view>
				<view class="value">{{ detail.type }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">皈依本师：</view>
				<view class="value">{{ detail.pname }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">受戒时间：</view>
				<view class="value">{{ detail.time }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">编号：</view>
				<view class="value">{{ detail.order_id }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">签发日期：</view>
				<view class="value">{{ detail.add_time }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">证件状态：</view>
				<view class="value">{{ detail.static }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">发证单位：</view>
				<view class="value">{{ init.address }}</view>
			</view>
			<view class="item mt15 d-s-c">
				<view class="name fb f32">服务电话：</view>
				<view class="value">{{ init.sever }}</view>
			</view>
			<view class="support mt60 f26 tc">技术支持:{{ init.support }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				init: {},
				detail: {
					// name: '刘莲兰',
					// name2: '圣莲',
					// card: '4428*******0027',
					// phone: '158*****666',
					// city: '广东省开平市',
					// type: '五戒',
					// pname: '上仁下慧',
					// time: '二零二三年二月十九',
					// or: '20230426000077',
					// add_time: '2023年05月26日',
					// static: '已发',
					// address: '广东新兴县福兴禅寺',
					// sever: '0766-2516536'
				},
			};
		},
		onLoad() {
			this.getCard();
			this.init = uni.getStorageSync("init");
		},
		methods: {
			async getCard() {
				const res = await this.$request({
					url: this.$api.card,
				});
				if (res.code == 1) {
					this.detail = res.data;
				}
			},
		},
	};
</script>

<style scoped lang="scss">
	.card {
		background-image: url("@/static/image/card.png");
		background-repeat: no-repeat;
		background-size: contain;
		background-position: center;
		width: 700rpx;
		height: 1220rpx;
	}

	.body {
		height: 100vh;
	}
</style>